import React from "react";
import {Button, Grid} from "@material-ui/core";
import {AddRounded} from "@material-ui/icons";

import {EnhancedTable, Toolbar} from "../../../shared/components";

const ViewAllScheduler = (props) => {

    return (
        <Grid container spacing={4}>
            <Toolbar
                title="Schedules"
                actions={<React.Fragment>
                    <Button
                        variant="contained"
                        color="primary"
                        startIcon={<AddRounded/>}
                    >
                        Create Schedule
                    </Button>
                </React.Fragment>}
            />

            <Grid item xs={12}>
                <EnhancedTable
                    title={"Schedules"}
                    schema={[
                        {id: 'id', label: 'Id', hidden: true},
                        {id: 'schedule', label: 'Schedule', sort: true},
                        {id: 'vehicleNum', label: 'Vehicle Number', sort: true},
                        {id: 'due', label: 'Due', sort: true},
                        {id: 'workorder', label: 'Workorder', sort: true}
                    ]}
                    data={[]}
                />
            </Grid>
        </Grid>
    );
};

export  default ViewAllScheduler;
